package com.mbc.hr.manager;

import java.util.List;

import com.mbc.common.manager.AbstractMgr;
import com.mbc.hr.entities.OvertimeType;

public class OvertimeTypeMgr extends AbstractMgr {
	public OvertimeTypeMgr(){}
	
	public OvertimeTypeMgr(String sessionID){
		this.sessionId = sessionID;
	}
	
	public List<OvertimeType> findAll()throws Exception{
		openConnection();
		try {
			return entityManager.createNamedQuery("OvertimeType.findAll", OvertimeType.class).getResultList();
		} catch (Exception e) {
			throw e;
		} finally {
			closeConnection();
		}
	}
}
